#define _CRT_SECURE_NO_WARNINGS 1

#define MAX_NAME 10
#define MAX_SEX 6
#define MAX_TEL 12
#define MAX_ADDR 20

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>

typedef struct peopleInfo
{
	char name[MAX_NAME];
	char sex[MAX_SEX];
	int age;
	char tel[MAX_TEL];
	char addr[MAX_ADDR];
	struct peopleInfo* prev;
	struct peopleInfo* next;
} peopleInfo;

void initContact(peopleInfo*);
void showContact(peopleInfo*);
void Add(peopleInfo*);
void Del(peopleInfo*);
void Find(peopleInfo*);
void Modify(peopleInfo*);
void Sort(peopleInfo*);
void saveContact(peopleInfo*);
void destroyContact(peopleInfo*);
